From 4144e156c03c3cdd79a38710e4d12137995bf17a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 18 Oct 2007 09:59:20 +0100 Subject: [PATCH] x86: Fix writable-pagetable cmpxchg path to properly adjust PTE (i.e., set _PAGE_GLOBAL for x86/64 guest user mappings). Signed-off-by: Keir Fraser --- xen/arch/x86/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index 46ed6b1226..d25fba7674 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -3403,7 +3403,7 @@ static int ptwr_emulated_update( ol1e = l1e_from_intpte(old); okay = paging_cmpxchg_guest_entry(v, &l1e_get_intpte(*pl1e), - &t, val, _mfn(mfn)); + &t, l1e_get_intpte(nl1e), _mfn(mfn)); okay = (okay && t == old); if ( !okay ) -- 2.30.2